package com.shuiyun.jtt.message.jt808;

import com.shuiyun.jtt.anno.Message;
import com.shuiyun.jtt.enums.JT808;
import com.shuiyun.jtt.message.JTMessage;
import com.shuiyun.jtt.utils.codec.DataType;
import com.shuiyun.jtt.utils.codec.FieldValue;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author shuiyun
 * @program gateway
 * @description 终端/平台 RSA公钥
 * @date 2022-05-09 23:08
 **/
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Data
@Message({JT808.终端RSA公钥0x0A00, JT808.平台RSA公钥0x8A00})
public class T0A00 extends JTMessage {

    @FieldValue(type = DataType.DWORD,desc = "RAS公钥[e,n]中的e")
    private Integer e;

    @FieldValue(type = DataType.BYTES,length = 128,desc = "RAS公钥[e,n]中的n")
    private byte[] n;
}
